﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class K9322
    {
        public K9322()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            InitializeComponent();
            SDSA = "9322"; 
        }
        
        public override void LOADALL()
        {
            base.LOADALL();
            foreach (DataRow row in TBMain.Rows)
            {
                row["SDES"] = Helpers.Helper.Convert8859P1ToGB2312(row["SDES"].ToString().Trim());
                row["DES"] = Helpers.Helper.Convert8859P1ToGB2312(row["DES"].ToString().Trim());
            }
            if (SDSA.Length == 0) return;
            if (TBMain.Rows.Count > 0)
                return;
            if (DBSDDAT.ContainsKey(SDSA))
            {
                DBSDDAT.Remove(SDSA);
            }
            dwData = TBMain.NewRow();
            TMV.SetUpNewRow(ref dwData, SDSA);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("1 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("速度M/MIN");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("速度M/MIN");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000"); 
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("2 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("轧液率%");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("轧液率%");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");

            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("3 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("覆盖%");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("覆盖%");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000"); 
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("4 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("层配方g/sqm");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("层配方g/sqm");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("5 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("浆纱增重");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("浆纱增重");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("6 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("填充配方");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("填充配方");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("7 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("通过量m/min");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("通过量m/min");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("8 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("设备时间min");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("设备时间min");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("9 ");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("设备时间h");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("设备时间h");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("10");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("转数");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("转数");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("11");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("配方时间H");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("配方时间H");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("12");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("穿综时间m/n");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("穿综时间m/n");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("13");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("首轴穿综时间m/n");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("首轴穿综时间m/n");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("14");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("最大头份");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("最大头份");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("15");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("整经时间");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("整经时间");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("16");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("打纬时间");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("打纬时间");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("20");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("转数");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("转数");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("21");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("效率");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("效率");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("22");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("织造效率");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("织造效率");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("23");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("织造转数");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("织造转数");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("24");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("比例");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("比例");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("25");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("实际支数");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("实际支数");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] =Helpers.Helper.ConvertGB2312To8859P1("26");
            dwData["DES"] =Helpers.Helper.ConvertGB2312To8859P1("KTEX");
            dwData["SDES"] =Helpers.Helper.ConvertGB2312To8859P1("KTEX");
            dwData["VALUE"] =Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] = Helpers.Helper.ConvertGB2312To8859P1("27");
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("捻度");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("捻度");
            dwData["VALUE"] = Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] = Helpers.Helper.ConvertGB2312To8859P1("28");
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("喂入捻度");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("喂入捻度");
            dwData["VALUE"] = Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] = Helpers.Helper.ConvertGB2312To8859P1("29");
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("喂入KTEX");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("喂入KTEX");
            dwData["VALUE"] = Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] = Helpers.Helper.ConvertGB2312To8859P1("30");
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("喂入长度");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("喂入长度");
            dwData["VALUE"] = Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] = Helpers.Helper.ConvertGB2312To8859P1("31");
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("损耗");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("损耗");
            dwData["VALUE"] = Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            dwData["KEY"] = Helpers.Helper.ConvertGB2312To8859P1("40");
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("温度");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("温度");
            dwData["VALUE"] = Helpers.Helper.ConvertGB2312To8859P1("000000000");
            TMV.Save(dwData);
            LOADALL();
        }
    }
}
